﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class stu_stuInfo : System.Web.UI.Page
{
    db_courseware cw = new db_courseware();
    db_course course = new db_course();
    db_teacher teach = new db_teacher();
    public string cwdNum = "";//课件次数
    public string cNum = "";//课程数量
    public string time = "";
    public string name = "";
    public string sex = "";
    public string goldNum = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        Server.Execute("checkStu.aspx");  // 此处用户权限验证
        name = Session["stuName"].ToString();
        time = Session["lastTime"].ToString();
        sex = Session["sex"].ToString().Equals("男") ? "先生" : "女生";
        string stuId = Session["stuID"].ToString();

        goldNum = new db_users().selectUserONE_id(stuId).Tables[0].Rows[0]["gold"].ToString();
        cwdNum = cw.selectCoursewareDownByStuIdCount(stuId).Tables[0].Rows[0]["cwdnum"].ToString();
        cNum = course.selectCourseSellByStuIdCount(stuId).Tables[0].Rows[0]["cnum"].ToString();

    }
}